package com.mijie.homi.listener;

import java.util.EventListener;

import net.sf.json.JSONObject;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mijie.homi.common.constant.CategoryCode;
import com.mijie.homi.common.constant.TypeCode;
import com.mijie.homi.common.protocol.HomiProtocol;
import com.mijie.homi.domain.commom.Reply;
import com.mijie.homi.service.common.CommentService;
import com.mijie.homi.service.common.ReplyService.REPLY;

@Service
public class ReplyListener implements EventListener{

	@Autowired
	private CommentService commentService;
	
	public void deleteReply(Enum<REPLY> type,long parentId){
		commentService.decreNumOfReply(type, parentId);
	}
}
